
#include<stdio.h>

int addTop(int top)
{
    int ret = 0;
    int i = 1;
    for(; i<= top; i++)
        ret += i;
    return ret;
}

int main()
{
    int top = 100;

    int sum = addTop(top);
    printf("%d\n", sum);
    return 0;
}
